﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls
{
    /// <summary>
    /// 辅助呼吸
    /// </summary>
    public partial class FZHXCtrl : RealVitalIcon
    {
        public FZHXCtrl()
        {
            InitializeComponent();
            DefaultColor= new SolidColorBrush((Color)ColorConverter.ConvertFromString("#4169E1"));
            ResizeIcon();
        }

        public override void ResizeIcon()
        {
            Ellipse we = new Ellipse();
            we.Fill = Brushes.White;
            we.Width = this.Width;
            we.Height = this.Width;
            we.Stroke = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#4169E1")); 
            we.StrokeThickness = 1;
            _grid.Children.Add(we);
            Ellipse ne = new Ellipse();
            ne.Stroke = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#4169E1"));;
            ne.StrokeThickness = 1;
            ne.VerticalAlignment = VerticalAlignment.Center;
            ne.HorizontalAlignment = HorizontalAlignment.Center;
            ne.Width = this.Width / 3;
            ne.Height = this.Width / 3;
            _grid.Children.Add(ne);
        }

        
    }
}
